<?php
require_once ("dao/AlbumDAO.php");
?>
<!-- menu trong cap thu muc -->
<div class="nav2">
    <ul>
        <li class="first"><a href="admin.php?c=album&p=albums" class="albums">Danh Sách Album</a></li>
        <li><a href="admin.php?c=album&p=add-album" class="add-album">Thêm Album Mới</a></li>
    </ul>
    <br class="clear">
</div>
<!-- end menu trong cap thu muc -->
<div class="clear"></div>
<!-- start noi dung can quan ly -->
<div class="content-manager">
    <?php
	if(isset($_GET['p'])) {
		$content = $_GET['p'];
		if($content == 'albums') {
			include_once('album_view/view_albums_list.php');
		} else if ($content == 'add-album') {
			include_once('album_view/add_new_album.php');
		} else if ($content == 'edit') {
			include_once('album_view/edit_album.php');
		}
	?>
	<script>
        $('.<?php echo($content)?>').css({'color': "#df4b49"});
    </script>
    <?php
	} else {
		include_once('album_view/view_albums_list.php');
		?>
		<script>
			$('.albums').css({'color': "#df4b49"});
		</script>
		<?php
	}
	?>
</div>
<!-- end noi dung can quan ly -->